﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_elmt_ckimg : BasiCommand
    {
        [JsonProperty("xpath")]
        public string XPath { get; set; }

        [JsonProperty("imgkey")]
        public string ImgKey { get; set; }

        [JsonProperty("rcd")]
        public int Record { get; set; }

        [JsonProperty("ssd")]
        public int Ssd { get; set; }

        [JsonProperty("option")]
        public int Option { get; set; }

        [JsonProperty("cutsize")]
        public int CutSize { get; set; }

        public wb_elmt_ckimg()
        {
            FunctionType = "wb_elmt_ckimg";
            OtherName = "元素图片确认";
            XPath = "";
            ImgKey = "";
            Record = 8;
            Ssd = 12;
            Option = 1;
            CutSize = 8;
            SuccessJump = -1;
            FailureJump = -1;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
